<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>点评列表</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/qdh.css" type="text/css" media="screen" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/member.css" type="text/css" media="screen" />
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/common.js"></script>

</head>
<body>
<div id="wrap">
	<s:include  value="header.jsp"/>	
	<div id="container">
		<div class="fl membersiderbox">
			<h1>用户中心</h1>
			<div class="mleft">
				<s:include value="mleft.jsp"/>
			</div>
		</div>
		<div class="fr membermain">
			<div class="mright">	
				<div class="usercommtab">
					<table width="100%" cellspacing="0" cellpadding="0">
					    <thead>
						    <tr>
								<td>房间名称</td>
								<td>点评时间</td>
								<td>状态</td>
								<td>意见</td>
								<td>操作</td>
							</tr>
						</thead>
						<tbody>
						<s:iterator value="reviewlist" id="x">

						    <tr>
							    <td>${x.roomName}</td>
							    <td><s:date name="#x.entryDate" format="yyyy-MM-dd HH:mm:ss"/></td>
							    <td>
							   	 <s:if test="#x.status==1"><font color="green">已审核</font></s:if>
							   	 <s:else><font color="red">未审核</font></s:else>
							    </td>
							    <td>
							    		<s:if test="#x.comment==1">
										<font color="green">好评</font>
										</s:if>
										<s:elseif test="#x.comment==2">
										<font color="#EE7942">中评</font>
										</s:elseif>
										<s:else>
										<font color="red">差评</font>
										</s:else>
							    </td>							   
							    <td><a href="findReview.action?id=${x.id}" target="_blank">查看点评</a>
							    <a href="orderDetail.action?id=${x.orderId}" target="_blank">查看订单</a></td>							 
							</tr>
							</s:iterator>
						</tbody>
					</table>
					<div class="clr"></div>	
					<div>
					</div>	
				</div>
			</div>
		</div>
		<div class="clr"></div> 
		<div class="fr listpage">${pagination}</div>       
	</div>
    <div class="mt15"></div>
	<s:include value="../footer.htm"/>
</div>
</body>
</html>
